// /supplier/getGoodsProportion
import request from '@/utils/request';
import type { GoodsPercentResponseData, SupplierInfoResponseData, GoodsSaleRankResponseData, OrderAmountResponseData,ProcureOrderResponseData,GoodsSaleResponseData } from './type';
enum API {
  SUPPLIER_GOODS_PERCENTAGE = '/supplier/getGoodsProportion', // 供应商品占比
  SUPPLIER_NAME_DATA = '/supplier/getPageInfo', // 获取名称和中间数据
  GOODS_SALE_RANK = '/supplier/storeSellsRanking', // 获取名称和中间数据
  ORDER_AMOUNT = '/supplier/getOrdersAmount', // 近七日已收货订单金额
  PROCURE_ORDER_DATA = '/supplier/getBuyOrderData', // 采购订单数据轮播
  GOODS_SALE_DATA = '/supplier/getGoodsSellData', // 实时交易轮播
}
// 获取供应商品占比
export const reqSupplierGoods = () => request<any, GoodsPercentResponseData>({ method: "GET", url: API.SUPPLIER_GOODS_PERCENTAGE });
// 获取供应商数据
export const reqSupplierInfo = () => request<any, SupplierInfoResponseData>({ method: "GET", url: API.SUPPLIER_NAME_DATA });
// 近一周销售排名
export const reqSaleRank = () => request<any, GoodsSaleRankResponseData>({ method: "GET", url: API.GOODS_SALE_RANK });
// 近七日收货订单金额
export const reqOrderAmount = () => request<any, OrderAmountResponseData>({ method: "GET", url: API.ORDER_AMOUNT });
// 采购订单数据轮播
export const reqProcureOrderList = () => request<any, ProcureOrderResponseData>({ method: "GET", url: API.PROCURE_ORDER_DATA });
// 实时交易轮播
export const reqGoodsSaleList = () => request<any, GoodsSaleResponseData>({ method: "GET", url: API.GOODS_SALE_DATA });